﻿using Common.Infrastructure;
using System;
using System.Collections.Generic;
using System.Text;

namespace StatsData.Data.Entity
{
    /// <summary>
    /// 生产统计
    /// </summary>
    public class t_produce_statis : EntityBase
    {
        [EntityFieldLength(50)]
        public string line_code { get; set; }

        /// <summary>
        /// 线体名称
        /// </summary>
        public string line_name { get; set; }

        public string line_name_en { get; set; }

        public string line_name_th { get; set; }

        /// <summary>
        /// 投入数
        /// </summary>
        public decimal total_in_qty { get; set; }

        /// <summary>
        /// 完成数
        /// </summary>
        public decimal total_finish_qty { get; set; }

        /// <summary>
        /// 最后一个工序完成数
        /// </summary>
        public decimal last_procedure_finish_qty { get; set; }

        /// <summary>
        /// 目标产能(套数)
        /// </summary>
        public decimal plan_total_finish_qty { get; set; }

        /// <summary>
        /// 目标产能(PCS数量)
        /// </summary>
        public decimal plan_total_finish_pcs_qty { get; set; }

        /// <summary>
        /// 目标入库
        /// </summary>
        public decimal plan_total_warehouse_qty { get; set; }

        /// <summary>
        /// 入库数
        /// </summary>
        public decimal total_warehouse_qty { get; set; }

        /// <summary>
        /// 总不良数
        /// </summary>
        public decimal total_bad_qty { get; set; }

        /// <summary>
        /// 投入总工时=投入实际工时*投入到岗人数
        /// </summary>
        public decimal total_in_user_work_hour { get; set; }

        /// <summary>
        /// 实际工时=产出总工时+投入总工时
        /// </summary>
        public decimal total_user_work_hour { get; set; }

        /// <summary>
        /// 产出总工时=产出实际工时*产出到岗人数
        /// </summary>
        public decimal total_finish_user_work_hour { get; set; }

        /// <summary>
        /// 标准总工时
        /// </summary>
        public decimal total_total_work_hour { get; set; }

        /// <summary>
        /// 实际出勤人数
        /// </summary>
        public decimal total_user_qty { get; set; }

        /// <summary>
        /// 今日应出勤人数
        /// </summary>
        public decimal today_plan_user_qty { get; set; }

        /// <summary>
        /// 今日上班时间(计划)
        /// </summary>
        public decimal today_work_hour { get; set; }

        /// <summary>
        /// 今日实际上班时间
        /// </summary>
        public decimal line_work_hour { get; set; }

        /// <summary>
        /// 入库数
        /// </summary>
        public decimal oqc_send_qty { get; set; }

        /// <summary>
        /// 计划排产昨日顺延数量
        /// </summary>
        public decimal delay_plan_qty { get; set; }

        /// <summary>
        /// 实际出勤人数 （HR打卡人数）
        /// </summary>
        public decimal present_user_qty { get; set; }

        /// <summary>
        /// 时间
        /// </summary>
        public DateTime curr_date { get; set; }

        /// <summary>
        /// 计划标准总工时=计划生产数量* (总装工时 + 包装工时 + 老化工时)，即目标工时
        /// </summary>
        public decimal plan_total_total_work_hour { get; set; }

        /// <summary>
        /// 印刷标准工时=工单上同步SAP的印刷标准工时（单位为秒）
        /// </summary>
        public decimal other_standard_time { get; set; }

        /// <summary>
        /// 印刷标准总工时=产出站实际产能数量* 印刷标准工时
        /// </summary>
        public decimal other_total_work_hour { get; set; }

        /// <summary>
        /// 投入出勤工时
        /// </summary>
        public decimal total_in_user_attend_hour { get; set; }

        /// <summary>
        /// 产出出勤工时
        /// </summary>
        public decimal total_finish_user_attend_hour { get; set; }
    }
}
